﻿$(document).ready(function () {
    $('#switcher').themeswitcher({
        width: 160,
        height: 200,
        onSelect: themeSwitcher_OnSelect,
        loadTheme: 'Smoothness'
        /*,cookieName: ''*/
    });
});

function themeSwitcher_OnSelect() {
    //alert(getCurrentTheme());
}

/***************** Helpers ********************/
//Get selected theme
function getCurrentTheme() {
    return ($('.jquery-ui-themeswitcher-title').html().split(':')[1]).trim();
}